﻿using System;
using System.Collections.Generic;

namespace SharpSqlAnalyzer.util
{
	// Token: 0x02000076 RID: 118
	internal class functionMap
	{
		// Token: 0x060002D9 RID: 729 RVA: 0x002F8B3F File Offset: 0x002F6D3F
		public virtual void setBuiltInFunctionList(string dbVersion, functionList functionList)
		{
			if (dbVersion != null && !this.functionMaps.ContainsKey(dbVersion) && functionList != null)
			{
				this.functionMaps[dbVersion] = functionList;
			}
		}

		// Token: 0x1700003F RID: 63
		// (get) Token: 0x060002DA RID: 730 RVA: 0x002F8B62 File Offset: 0x002F6D62
		public virtual List<string> DbVersions
		{
			get
			{
				return new List<string>(this.functionMaps.Keys);
			}
		}

		// Token: 0x060002DB RID: 731 RVA: 0x002F8B74 File Offset: 0x002F6D74
		public virtual functionList getBuiltInFunctionList(string dbVersion)
		{
			if (this.containsVersion(dbVersion))
			{
				return this.functionMaps[dbVersion];
			}
			return null;
		}

		// Token: 0x060002DC RID: 732 RVA: 0x002F8B8D File Offset: 0x002F6D8D
		public virtual bool containsVersion(string version)
		{
			return this.functionMaps.ContainsKey(version);
		}

		// Token: 0x04001085 RID: 4229
		private Dictionary<string, functionList> functionMaps = new Dictionary<string, functionList>();
	}
}
